﻿using MachineVision.Domain;
using System;

namespace MachineVision.Service.Dto
{
    public class Warning
    {
        /// <summary>
        /// 车名(编号)
        /// </summary>
        public string NO { get; set; }
        /// <summary>
        /// 报警类型
        /// </summary>
        public WarningType Type { get; set; }
        /// <summary>
        /// 报警类型
        /// </summary>
        public string TypeStr { get {
                return Type.ToString();
            } }

        /// <summary>
        /// 机器人X坐标
        /// </summary>
        public double TerminalX { get; set; }

        /// <summary>
        /// 机器人Y坐标
        /// </summary>
        public double TerminalY { get; set; }

        /// <summary>
        /// 机器人角度
        /// </summary>
        public double TerminalA { get; set; }

        /// <summary>
        /// 发生站点/地点（可空）
        /// </summary>
        public string? Terminal { get; set; }
        /// <summary>
        /// 库区
        /// </summary>
        public string? WorkShop { get; set; }
        

        /// <summary>
        /// 详情（可空）
        /// </summary>
        public int? Details { get; set; }

        /// <summary>
        /// 发生时间
        /// </summary>
        public DateTime Time { get; set; }

        /// <summary>
        /// 图片（可空）,base64
        /// </summary>
        public string? VisionFile { get; set; }
    }

}
